package com.crux.controller;

import com.crux.controller.dto.HystrixResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class FallBackController {
    @GetMapping(value = "defaultfallback")
    public HystrixResponse defaultFallBack(){
        HystrixResponse response = new HystrixResponse();
        response.setMsg("服务被限流了");
        response.setCode("100");
        return response;
    }
}
